package com.zbkj.front.controller.assistant.service.impl;


import com.zbkj.common.model.assistant.AssistantConversation;
import com.zbkj.front.controller.assistant.service.AssistantConversationService;
import com.zbkj.service.assistant.service.AssistantConversationBaseServiceImpl;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.Date;


/**
* @author keNan
* @description AssistantConversationServiceImpl 接口实现
* @date 2025-06-11
*/
@Slf4j
@Primary
@Service
@RequiredArgsConstructor
public class AssistantConversationServiceImpl extends AssistantConversationBaseServiceImpl implements AssistantConversationService {

    @Override
    public void updateFeedback(Integer id, String evaluationRating) {
        super.lambdaUpdate()
            .eq(AssistantConversation::getId, id)
            .set(AssistantConversation::getEvaluationRating, evaluationRating)
            .set(AssistantConversation::getEvaluationTime, new Date())
            .update();
    }




}

